package com.liuhouse.runner;

import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

//@Component
//项目在启动的时候，该类负责预处理一些代码,CommandLineRunner是spring提供的接口
public class myCommandLineRunner implements CommandLineRunner {
    @Override
    public void run(String... args) throws Exception {
        System.out.println("程序初始化");
    }
}
